package smartlifev30.com.sdk.bean.response;

/**
 * @author tys
 * @date 2018/8/31
 */

public class GatewayInfo {
    private String sn;
    private String version;
    private String alias;

    /**
     * 0-dhcp, 1-静态IP
     */
    private String net_mode;
    private String ip;
    private String netmask;
    private String gateway;
    private String dns;
    private String port;

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public String getNet_mode() {
        return net_mode;
    }

    public void setNet_mode(String net_mode) {
        this.net_mode = net_mode;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getNetmask() {
        return netmask;
    }

    public void setNetmask(String netmask) {
        this.netmask = netmask;
    }

    public String getGateway() {
        return gateway;
    }

    public void setGateway(String gateway) {
        this.gateway = gateway;
    }

    public String getDns() {
        return dns;
    }

    public void setDns(String dns) {
        this.dns = dns;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        GatewayInfo that = (GatewayInfo) o;

        return sn.equals(that.sn);
    }

    @Override
    public int hashCode() {
        return sn.hashCode();
    }

    @Override
    public String toString() {
        return "GatewayInfo{" +
                "sn='" + sn + '\'' +
                ", version='" + version + '\'' +
                ", alias='" + alias + '\'' +
                ", net_mode='" + net_mode + '\'' +
                ", ip='" + ip + '\'' +
                ", netmask='" + netmask + '\'' +
                ", gateway='" + gateway + '\'' +
                ", dns='" + dns + '\'' +
                ", port='" + port + '\'' +
                '}';
    }
}
